//Accepted
#include <vector>
#include <set>
#include <algorithm>
#include <string>
#include <cmath>
#include <queue>
#include <map>
#include <iostream>
#include <list>
#include <deque>
#include <cstdio>
#include <cstring>
#include <cstdlib>
using namespace std;


int main (){
	//freopen("in.txt", "r", stdin);//freopen("out.txt", "w", stdout);
	int sum, a[100], n, i, resp;
	scanf("%d", &n);
	resp=sum=0;
	for(i=0;i<n;++i){
		scanf("%d", &a[i]);
		sum+=a[i];
	}
	for(i=0;i<n;++i){
		if((sum-a[i])%2==0)resp++;
	}
	printf("%d", resp);
	
	return 0;
}
